/**
 * @Author: Jackey 327156719@qq.com
 * @Date: 2024-11-13 19:24:50
 * @LastEditors: Jackey 327156719@qq.com
 * @LastEditTime: 2024-11-13 19:46:13
 * @FilePath: src/main/java/org/springblade/modules/admin/vo/MessageHistoryResponse.java
 * @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
 */
package org.springblade.modules.admin.vo;

import lombok.Data;

import java.util.List;
import java.util.Map;
@Data
public class MessageHistoryResponse {
	private Integer limit;
	private Boolean has_more;
	private List<MessageData> data;

	@Data
	public static class MessageData {  // 加上static
		private String id;
		private String conversation_id;
		private Map<String, Object> inputs;
		private String query;
		private String answer;
		private List<MessageFile> message_files;
		private FeedbackInfo feedback;
		private List<RetrieverResource> retriever_resources;
		private Long created_at;
	}

	@Data
	public static class MessageFile {  // 加上static
		private String id;
		private String type;
		private String url;
		private String belongs_to;
	}

	@Data
	public static class FeedbackInfo {  // 加上static
		private String rating;  // like, dislike
	}

	@Data
	public static class RetrieverResource {  // 加上static
		private Integer position;
		private String dataset_id;
		private String dataset_name;
		private String document_id;
		private String document_name;
		private String segment_id;
		private Double score;
		private String content;
	}
}

